//
//  chara.h
//  rpg-purdue
//
//  Created by Huyue Gu on 9/6/11.
//  Copyright 2011 Purdue University. All rights reserved.
//

#ifndef rpg_purdue_chara_h
#define rpg_purdue_chara_h

struct hero_po{
    int x;
    int y;
    
}

class Hero {
    struct hero_po;
    int hp;  // hp
    int hpmax;  //最高血量
    int mp;
    int mpmax;  //最高魔法
    int hold;   //持有物品
    int lv;     //等级
    bool alive; //判断是否存活
    int state;
    
    
public:
    void changeP(int x,int y);
    bool damage(int);//make a decrese of hp and return false is hp is less than 0
    void changeH(int);//change the holding item
    void changeS(int);//change role's state
    bool useMp(int);//decrease mp return false when mp<0
    Hero();
    ~Hero();
    
};




#endif
